<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String id = request.getParameter("id") == null ? "" : request.getParameter("id").toString().trim();
%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0" />
	<title>权限管理</title>
	<link rel="stylesheet" href="<%=path %>/skin/default/css/editor.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/skin/default/css/button.css" type="text/css" />
	<link rel="stylesheet" href="<%=path %>/scripts/dialog/default/ymPrompt.css" type="text/css" />
	
	<script type="text/javascript" src="<%=path %>/scripts/jquery/jquery-1.8.2.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/jquery/jquery.json-2.2.min.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/jquery/jquery.placeholder.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/dialog/ymPrompt.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/validator.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/main.js"></script>
	<script type="text/javascript" src="<%=path %>/scripts/utils.js"></script>
	<script type="text/javascript">
		$(function(){
			var id = '<%=id %>';
			var options = {
				detailUrl:"Data",
				submitUrl:"SaveOrUpdate",
				returnUrl:"<%=path %>/purview/view",
				submitBtn:"btnSaveOrModify",
				backBtn:"btnBack",
				openState:false,
				winSel:[
					{winTag:"relation",winUrl:"<%=path %>/tree/relation",winTitle:"多项选择框",winWidth:580,winHeight:380,winPos:"c",event:"dblclick"}
				],
				relation:[
					{mark:"relation",url:"Relation?id=",code:"relationCode",name:"relationName",id:id}
				],
				formId:id
			};
			$("#form").loadEditData(options);
		});
	</script>
</head>
<body>
	<div id="container">
		<div class="toolBar">
			<div class="fl">
				<input type="button" id="btnSaveOrModify" name="btnSaveOrModify" class="btn btn82 btn_save" value="保 存" />
				<input type="button" id="btnBack" name="btnBack" class="btn btn82 btn_back" value="返 回" />
			</div>
		</div>
		<input type="hidden" id="basePath" name="basePath" value="<%=path %>" />
		<form action="" id="form" method="post">
			<input type="hidden" id="id" name="id" value="<%=id %>" />
			<table border="0" cellpadding="0" cellspacing="0" class="form_table">
				<tr>
					<td class="td_right">权限名称：</td>
					<td><input type="text" id="purviewName" name="purviewName" value="" class="input_long" require="NotNull"/></td>
					<td class="td_right">权限状态：</td>
					<td>
						<input type="radio" id="state1" name="status" value="Y" checked="checked"/>&nbsp;启用
						&nbsp;&nbsp;
						<input type="radio" id="state2" name="status" value="N"/>&nbsp;禁用
					</td>
					<td width="235"></td>
				</tr>
				<tr>
					<td class="td_right">权限成员：</td>
					<td style="padding-top: 5px;">
						<input type="hidden" id="relationCode" name="relationCode" value="">
						<input type="hidden" id="relationName" name="relationName" value="">
						<select multiple="multiple" id="relation" class="select_multiple" title="双击操作"></select>
					</td>
					<td class="td_right">权限动作：</td>
					<td style="padding-top: 5px;">
						<input type="hidden" id="defaultMenu" name="defaultMenu" value="">
						<input type="hidden" id="parentMenu" name="parentMenu" value="">
						<select multiple="multiple" id="relationMenu" class="select_multiple" title="双击操作"></select>
					</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td class="td_right">描述：</td>
					<td colspan="3">
						<textarea id="description" name="description" class="textarea"></textarea>
					</td>
					<td>&nbsp;</td>
				</tr>				
			</table>
		</form>
	</div>
</body>
</html>